/**
 * Created by 123456 on 2016/10/31.
 */
/**
 * Created by hou on 2016/10/13.
 */
define(["business/services/constant"], function (constant) {
    var vedio_url = constant.config.BASEURL_VIDEO;//ip
    var vedio_base = constant.config.CONSTANT_VEDIO;//elink_video/api/video
    var couseCon =   constant.config.CONSTANT_COURSECon;//课程通用elink_video/api/course
    var videoCata = constant.config.CONSTANT_videoCata;//elink_video/api/videocategory
    var chapter = constant.config.CONSTANT_chapter;//elink_video/api/chapter
    var collect = constant.config.CONSTANT_collect;//elink_video/api/videocollection
    var job = constant.config.CONSTANT_Job;//elink_video/api/job
    var mapUrl = constant.config.BASEURL_Company;//"http://"+allUrl+":8080
    var mappro = constant.config.CONSTANT_Map;//省级接口
	var map2 = constant.config.CONSTANT_Map2;//市接口
	var companyUrl = constant.config.BASEURL_Company;
	var company = constant.config.CONSTANT_Company;//企业信息
	var BlogUrl = constant.config.BASEURL_CompanyBlog;//企业博文1列表
	var BLog = constant.config.CONSTANT_Blog;
	var comPanyFri = constant.config.CONSTANT_getCompanyFollowList//企业经营（好友管理）
	var evaUrl = constant.config.BASEURL_BOWEN;//评论接口
	var eva = constant.config.CONSTANT_evacompany;//企业点评
    var parctice_url= constant.config.CONSTANT_PRACTICE;
    var file_url = constant.config.CONSTANT_FILE;
    var boster_url = constant.config.CONSTANT_BOSTBAR;
	var money = constant.config.CONSTANT_cvdatabase;//薪资
    var bwUrl = constant.config.BASEURL_REGION;
    var bwAPI = constant.config.CONSTAN_BWLIST;
    var province = constant.config.CONSTANT_REGION_PROVICE;
    var coursetype = constant.config.CONSTANT_coursetype;//elink_video/api/coursetype
    var follow = constant.config.CONSTANT_FOLLOW;//elink_user/api/follow'
    var staff = constant.config.CONSTANT_STAFF
    var user = constant.config.CONSTANT_USER;
    var userhost = constant.config.BASEURL_BLOG;
    var person = constant.config.CONSTANT_PERSON;
    var message = constant.config.CONSTANT_MESSAGE;
    
    var componyurl = constant.config.CONSTANT_Company;
    var coinAPI = "elink_user/api/coin";
    return {
      	getcompanyHttpService:function(requestion) {
            return constant.httpSend(userhost, componyurl, requestion);
    	},    	
     	getshengHttpService:function(requestion) {
            return constant.httpSend(userhost, mappro, requestion);
    	},   	
    	getuserHttpService:function(requestion) {
            return constant.httpSend(userhost, user, requestion);
    	},
        getPracticeTopCategory:function(requestion){
            return constant.httpSend(baseUrl,parctice_url,requestion);
        },
        getSameVideo:function(requestion){
            return constant.httpSend(vedio_url,vedio_base,requestion);
        },
        getcourse:function(requestion){
            return constant.httpSend(vedio_url,couseCon,requestion);
        },
        getcourseCata:function(requestion){
            return constant.httpSend(vedio_url,videoCata,requestion);
        },
        getchapter:function(requestion){
            return constant.httpSend(vedio_url,chapter,requestion);
        },
        getcollect:function(requestion){
            return constant.httpSend(vedio_url,collect,requestion);
        },
        getJobLangularOne:function(requestion){
            return constant.httpSend(vedio_url,job,requestion);
        },
        getMap:function(requestion){
            return constant.httpSend(mapUrl,mappro,requestion);
        },
         getCompany:function(requestion){
            return constant.httpSend(companyUrl,company,requestion);
        },
         getBlog:function(requestion){
            return constant.httpSend(BlogUrl,BLog,requestion);
        },
         getComPanyFriend:function(requestion){
            return constant.httpSend(companyUrl,comPanyFri,requestion);
        },
         getComPanyEva:function(requestion){
            return constant.httpSend(evaUrl,eva,requestion);
        },
         getMoney:function(requestion){
            return constant.httpSend(vedio_url,money,requestion);
        },
        bwHttpService:function(requestion){
            return constant.httpSend(bwUrl,bwAPI,requestion);
        },
        homePageHttpService:function(requesion){
        	return constant.httpSend(bwUrl,company,requesion);
        },
        natureHttpService:function(requesion){
        	return constant.httpSend(bwUrl,province,requesion);
        },
        postcoursetype:function(requestion){
            return constant.httpSend(vedio_url,coursetype,requestion);
        },
         getCOmpanyFollow:function(requestion){
            return constant.httpSend(bwUrl,follow,requestion);
        },
        getCOmpanystaff:function(requestion){
            return constant.httpSend(bwUrl,staff,requestion);
        },
         getuser:function(requestion){
            return constant.httpSend(bwUrl,user,requestion);
        },
         getuserPerson:function(requestion){
            return constant.httpSend(bwUrl,person,requestion);
        },
        postMesasage:function(requestion){
            return constant.httpSend(bwUrl,message,requestion);
        },
        coinHttpService:function(requestion){
			return constant.httpSend(mapUrl,coinAPI, requestion);
		}
    }
});

